#!/usr/bin/make -f
#
# Jailhouse, a Linux-based partitioning hypervisor
#
# Copyright (c) Siemens AG, 2018
#
# Authors:
#  Jan Kiszka <jan.kiszka@siemens.com>
#
# SPDX-License-Identifier: MIT
#

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# Needed in case we run as root (for whatever reason)
export FORCE_UNSAFE_CONFIGURE=1

override_dh_auto_configure:
	cp ../.config .
	${MAKE} olddefconfig

# This target saves autotools outputs from output/. But we perform a clean
# rebuild so that restoring the files may fail and is also not needed.
override_dh_update_autotools_config:

# No test desired.
override_dh_auto_test:

%:
	dh $@ --parallel
